/**
 * TopicService.java 1.0 2007-5-7 上午12:00:16,创建 by yangfan
 */


package org.in4j.bbs.service;

import org.in4j.bbs.exception.BusinessException;
import org.in4j.bbs.model.Topic;
import org.in4j.core.dao.support.Pagination;

/**
 *
 * @author yangfan
 * @version 1.0 2007-5-7 上午12:00:16,创建
 */
public interface TopicService
{
	public Pagination<Topic> listTopicsByBoardId(int boardId,int pageNo,int pageSize);

	public Topic getTopicById(Integer id);

	public void addNewTopic(int boardId, Topic topic) throws BusinessException;

	public void removeTopic(int topicId) throws BusinessException;

	public void updateTopic(Topic topic) throws BusinessException;
}
